package com.leeoohoo.utils;

import org.springframework.beans.BeanUtils;

public class HooBeanUtils {

    public static <T> T copyProperties(Class<T> t, Object source) {
        T result = BeanUtils.instantiateClass(t);
        BeanUtils.copyProperties(source, result);
        return result;
    }
}
